//
// Created by crg on 2018/8/17.
//

#ifndef C_ADANCED_PROGRAMMING_CHAPTER7_H
#define C_ADANCED_PROGRAMMING_CHAPTER7_H

#include <string>

namespace Chapter7{
    class SpreadsheetCell
    {
    public:
        void setValue(double inValue);
        double getValue()const;
        void setString(const std::string& inString);
        const std::string& getString()const;

    private:
        std::string doubleToString(double inValue)const;
        double stringToDouble(const std::string& inString)const;
        double mValue;
        std::string mString;
    };
}




#endif //C_ADANCED_PROGRAMMING_CHAPTER7_H
